#ifndef RESULT_H
#define RESULT_H

#include <iostream>
using namespace std;

class Result
{
    bool success;
    string msg;
public:
    Result(bool succ, string message);
    Result(bool succ);
    bool getResult();
    string getMessage();
    void setMessage(string s);
    Result operator&& (Result r);
    Result& operator&=(Result r);
    Result& andRes(Result r, bool takesSecondMsg=true);
    Result& andBool(bool a);
    const char* getMessageCStr();

};

#endif // RESULT_H
